<?php

defined('_JEXEC') or die('Restricted access');

require_once(JPATH_COMPONENT.DS.'controller.php');

// Require specific controller 
if($controller = JRequest::getWord('controller')) {
	$path = JPATH_COMPONENT.DS.'controllers'.DS.$controller.'.php'; 
	if (file_exists($path)) {
		require_once $path;
	} else {
	 $controller = ''; 
	} 
} 
/*
// Register Extra tasks
$controller->registerTask( 'new'  , 	'edit' );
$controller->registerTask( 'apply', 	'save' );
$controller->registerTask( 'apply_new', 'save' );
*/
// Create the controller 
$classname = 'FattureTooController'.$controller;
$controller = new $classname(); 
// Perform the Request task 
$controller->execute( JRequest::getVar( 'task' ) );
 // Redirect if set by the controller 
$controller->redirect();



?>